package com.qf.springboot.mapper;

import com.qf.springboot.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select("SELECT * FROM user WHERE id=#{id}")
    User findUserById(Long id);

    @Insert("INSERT INTO user(username, password, `type`, status, data2, data1)values(#{username}, #{password}, #{type}, #{status}, #{data2}, #{data1}) ")
    User addUser(User user);
}
